
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<title>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
    </head>

    <body class="inside-header inside-aside is-dialog">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    控制台                                    <small>Control panel</small>
                                </h1>
                            </section>
                                                        <div class="content">
                                <style>
    .fieldlist dd input:first-child {
        width: 45% !important;
    }

    .form-group .json_list,
    .answer {
        display: flex;
    }

    .form-group .json_list {
        margin: 5px 0;
    }

    .json_left {
        width: 80%;
        padding-right: 5px;
    }

    .answer {
        margin-top: 10px;
    }
    #old_Result{cursor:pointer;line-height: 32px;}
    #old_Result_list{
        position: absolute;
        background: #d9edf7;
        border: 1px solid #d2e8f3;
        left: -420px;
        max-height: 277px;
        width: 370px;
        padding: 5px;
        top: 6px;
        overflow: auto;
    }
    .oldresult{
        position: fixed;
        height: 25px;
        width: 25px;
        line-height: 25px;
        text-align: center;
        background: #ccc;
    }
</style>
<div class="alert alert-info-light" style="margin-bottom:10px;">
    注意: 编辑时如存在结果数据，可点击 '原始结果' 进行查看，'原始结果' 仅供查看 ！</div>
<div class="row">
    <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
        <div class="panel panel-default panel-intro">
            <div class="panel-body">
                <div id="1" class="tab-content">
                    <div class="tab-pane fade active in" id="one">
                        <div class="widget-body no-padding">
                            <div id="toolbar" class="toolbar">
                                <a href="javascript:;" class="btn btn-primary btn-refresh" title="刷新"><i class="fa fa-refresh"></i> </a> <a class="btn btn-info btn-disabled disabled btn-selected" href="javascript:;">
                                    <i class="fa fa-leaf"></i>
                                    选择问题  </a>
                            </div>
                            <table id="table" class="table table-striped table-bordered table-hover" width="100%">

                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
        <div class="panel panel-default panel-intro">
            <div class="panel-body">
                <input type="hidden" id="question_ids" value="[]">

                <input type="hidden" id="question_val" value='{$row.question}'>
                <input type="hidden" id="result_val" value='{$row.result}'>
               
                <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="question/question/component?ids={$ids}">
                    <input type="hidden" name="row[ids]" id="qids" value="{$ids}">
                    <div class="form-group row">
                        <label class="control-label col-xs-12 col-sm-2">问题:</label>
                        <div class="col-xs-12 col-sm-10" id="question" style="min-height: 50px; border: 1px dashed #d9edf7;"></div>
                    </div>

                    <!--选择标签 编辑结果-->
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">标签:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-component_id" data-rule="required" data-source="allclass/tags/index" data-params='{}' class="form-control selectpage" data-multiple="true" name="row[tags_id]" type="text" value="">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="control-label col-xs-12 col-sm-2">结果:</label>
                        <div class="col-xs-12 col-sm-10">

                            {if condition="$row.result"}
                                <div id="old_Result">原始结果<a title="显示为最后一次修改数据；再次点击即可隐藏"><i class="fa fa-question-circle"></i></a></div>
                            {/if}
                           
                            <div id="old_Result_list" style="display: none;">
                            
                            </div>


                            <div id="question_Result"></div>
                        </div>
                    </div>

                    

                    <div class="form-group layer-footer">
                        <label class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-8">
                            <button type="submit" class="btn btn-success btn-embossed disabled">确定</button>
                            <button type="reset" class="btn btn-default btn-embossed">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
</body>
</html>
